<div class="febs-container" id="modelOars-detail">
    <div class="febs-open-body febs-open-body layui-fluid" lay-title="桨模详情">
        <form class="layui-form" action="" lay-filter="modelOars-detail-form">
            <input type="hidden" name="id" >
            <fieldset class="layui-elem-field">
                <legend id="oars_inf">桨模信息</legend>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">项目编号：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.projectCode}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label  febs-form-item-require">桨模编号：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.oarsCode}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">桨模名称：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.oarsName}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">建模文件：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.makeModelFileName}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">来源：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.sourceName}"></div>
                        </div>
                        <div class="layui-col-xs6" id="origOarsCodeDiv">
                            <label class="layui-form-label ">原桨模编号：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.origOarsCode}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">最新敞水日期：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${#dates.format(modelOars.waterDate, 'yyyy-MM-dd HH:mm')}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">桨模位置：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.positionName}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">处理意见：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.opinionName}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">直径：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.diameter + 'mm'}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">螺距比：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.pitch}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">盘面比：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.surfaceRate}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">弦长：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.chordLength + 'mm'}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">叶厚：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.fanThick + 'mm'}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">轴孔直径：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.holeDiameter + 'mm'}"></div>
                        </div>
                    </div>
                </div>
            </fieldset>
            <fieldset class="layui-elem-field">
                <legend id="shell_inf">桨殻尺寸</legend>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">殻长：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.shellLength + 'mm'}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">前端直径：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.frontDiameter + 'mm'}"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">后端直径：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.backendDiameter + 'mm'}"></div>
                        </div>
                    </div>
                </div>

            </fieldset>
            <fieldset class="layui-elem-field">
                <legend id="propeller_inf">螺旋桨参数</legend>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">参数1：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.oarsType == 1} ? '单桨' : (${modelOars.oarsType == 2} ? '双桨' : (${modelOars.oarsType == 3} ? '多桨':''))"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">参数2：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.prupose eq 1 ? '新桨' : '备用桨'}"></div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">螺旋桨直径：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.oarsDiameter + 'mm'}"></div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label ">叶数：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${modelOars.fanNumber}"></div>
                        </div>
                    </div>
                </div>
            </fieldset>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label ">要求完成时间：</label>
                        <div class="layui-input-block layui-input-block-html" th:text="${#dates.format(modelOars.demandEnddate, 'yyyy-MM-dd HH:mm')}"></div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label febs-form-item-require">备注：</label>
                <div class="layui-input-block layui-input-block-html" th:text="${modelOars.memo}"></div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div id="fileUpload" style="height: 120px ;width: 98%"></div>
                </div>
            </div>
            <div class="layui-form-item" align="center">
                <button type="reset" class="layui-btn" id="reset">返回</button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var modelOarsData = [[${modelOars}]];
    var jmNo = [[${jmNo}]];
    var attachs = [[${attachs}]];


</script>
<script th:src="@{/febs/js/sypq/modelOars/modelOarsDetail.js(v=1)}"></script>
<style>
    #modelOars-detail .layui-form-label {
        width: 140px;
    }
    #modelOars-detail .layui-input-block {
        margin-left: 170px;
    }
    .febs-tabs-item {
        height:auto;
    }
</style>